package com.kemai.designmode.command.command

import com.kemai.common.utils.AppUtils
import com.kemai.designmode.command.Command
import com.kemai.designmode.command.handler.DiscountHandler
import com.kemai.designmode.command.handler.HotHandler
import com.kemai.designmode.command.handler.NewerHandler

/**

 *@description:TODO
 * @author: zhaoshanshan
 * @date: 2022/10/4 11:25 上午

 */
class NewsCommand:Command {
    private val newerHandler:NewerHandler = NewerHandler()
    override fun execute() {
        val result = newerHandler.getNews()
        AppUtils.getInstance()?.showToast(result)
    }
}